﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;

/// <summary>
/// Summary description for Common
/// </summary>
public class Common : System.Web.UI.Page
{
    public enum LookUpData {SIZE_LENGTH=1,STATUS=5,STONES_UNITS=13,PETALU=16}

    public enum Status { ACTIVE = 7, INACTIVE = 8, INITIAL = 9, INPROCESS = 10, PENDING = 11, COMPLETED = 12 }

    public DataView GetLookupData(int ParentLookUpId)
    {
        DataView dvlookupData = Session["lookupData"] == null ? (new LGW.BLL.Products()).GetLookupData().DefaultView : ((DataTable)Session["lookupData"]).DefaultView;
        dvlookupData.RowFilter = "ParentLookUpId='" + ParentLookUpId + "'";
        return dvlookupData;
    }
}

